package config

type Config struct {
	Name           string
	ShowVolumeList bool   `json:",default=false"`
	HttpHost       string `json:",default=http://127.0.0.1:8891"`
	RpcServer      RpcServerConf
	HttpServer     HttpServerConf
	Metadata       MetadataConf
	Log            LogConf
	Rpc            RpcConf
}

type RpcConf struct {
	MaxRecvMsgSize int
	MaxSendMsgSize int
}

type RpcServerConf struct {
	Host string `json:",default=0.0.0.0"`
	Port int
}

type HttpServerConf struct {
	Host string `json:",default=0.0.0.0"`
	Port int
}

type MetadataConf struct {
	Dir string `json:",default=./metadata"`
	Mid uint64 `json:",default=0"`
}

type LogConf struct {
	Dir        string `json:",default=tmp"`
	ServerName string `json:",default=gofile-manager"`
}
